package com.easy.common.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.easy.common.enumbean.PermissionType;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

@TableName("sys_permission")
@Data
public class SysPermission  implements Serializable {
    @TableId(type= IdType.AUTO)
    private Integer id;
    @TableField("perm_key")
    private String permkey;
    @TableField("perm_name")
    private String permname;
    @TableField("perm_type")
    private  PermissionType permtype;
    @TableField("service_module")
    private String servicemodule;
    private Integer parentid;
    private String description;
    @TableField("create_time")
    private LocalDateTime createtime;
    @TableField(exist = false)
    private List<SysPermission> children;
}
